import axios from '@/utils/request'
// 更新用户地址接口
export function getUpdate (addressInfo) {
  return axios.post('address/update', addressInfo)
}
// 删除用户地址接口
export function getDelete (addressInfo) {
  return axios.post('address/delete', addressInfo)
}
// 获取用户地址列表
export function getList (addressInfo) {
  return axios.get('address/list', addressInfo)
}
// 查询用户默认地址
export function getDefaultAddress (addressInfo) {
  return axios.post('address/defaultAddress', addressInfo)
}
// 用户添加地址
export function getAdd (addressInfo) {
  return axios.post('address/add', addressInfo)
}
// 获取城市列表
export function getCity () {
  return axios.get('city/city.json')
}
